home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / Gfx / Edit / TSMorph / src / rexx / PixelMorph.TSM < prev    next >
Text File  |  1995-02-05  |  988b  |  40 lines

  1. /* example Prescript script file for TSMorph */
  2. /* This example is a simple Morph which Pixelates between two images */
  3. /* $VER: PixelMorph_TSM 3.1 (5.2.95)
  4.  */
  5. parse arg Base
  6. Frame       = 0
  7. TotalFrames = 1
  8. Single      = 2
  9. Movement    = 3
  10. Red1        = 4
  11. Green1      = 5
  12. Blue1       = 6
  13. Red2        = 7
  14. Green2      = 8
  15. Blue2       = 9
  16. Produce     = 10
  17. RPlus       = 11
  18. GPlus       = 12
  19. BPlus       = 13
  20. RMinus      = 14
  21. GMinus      = 15
  22. BMinus      = 16
  23. DX          = 17
  24. DY          = 18
  25. Start       = 19
  26.  
  27. call StoreValue(Base,DX,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
  28. call StoreValue(Base,DY,min(TRUNC(GetValue(Base,Frame)),TRUNC(GetValue(Base,TotalFrames)+1-GetValue(Base,Frame))));
  29.  
  30. exit
  31.  
  32. GetValue:Procedure
  33.    Parse arg XBase, XAdd
  34.    return C2D(IMPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),4))
  35.  
  36. StoreValue:Procedure
  37.    Parse arg XBase, XAdd, XVal
  38.    call EXPORT(D2C(STRIP(XBase) + (STRIP(Xadd) * 4),4),D2C(XVal,4),4)
  39.    return
  40.